﻿using NHibernate;

namespace HinduShop.DbClassLib
{
    public class GenericTransaction : IGenericTransaction
    {
        private readonly ITransaction transaction;

        public GenericTransaction(ITransaction transactionParam)
        {
            transaction = transactionParam;
        }

        public void Dispose()
        {
            transaction.Dispose();
        }

        public void Commit()
        {
            transaction.Commit();
        }

        public void Rollback()
        {
            transaction.Rollback();
        }


    }
}